
/*******************************************************
*  Team name: FTPMP
*  Class involve: Event, Card
*  Version: 1.0
*  Author: Ada Ko
*  History of modification: 
*  Ver 1.0, Fred,
*  - add Event Constructor, setOptions, setHint
*  
*  Ver 1.1, Fred,
*  - add getEventname, getReward, getOption, getEventHint, getEID
*  
*  
*******************************************************/



package entity;
import java.awt.*;
import javax.swing.*;

public class Event extends Card
{ 
    private int EID;  
    private String name;
    private String[] options;

	private String[] hint; 
	private int[] reward; 
	
	private int count=0;
	
	public Event()
	{
		this.EID=count;
		count++;
	}
	public Event(String name, int[] reward,String[] options, String[] hint) 
	{
		this.EID=count;
		count++;
		this.name=name;
		this.reward=reward;
		this.options=options;
		this.hint=hint;
	}
	//Get, set eventName
	public String getEventname()
	{
		return this.name;
	}
	public void setEventname(String name)
	{
		this.name=name;
	}
	
	//get,set reward
	public int getReward(int ans)
	{
		return this.reward[ans];
	}
	public void setReward(int[] reward)
	{
		this.reward=reward;
	}
	
	
	//get,set options 
	public String[] getOptions()
	{
		return this.options;
	}
    public void setOptions(String[] options)
    {
    	this.options=options;
    }
    
    
    public String[] getEventHint()
    {
    	return this.hint;
    }
    //set func

    public void setHint(String[] hint)
    {
    	this.hint=hint;
    }
    
    public int getEID()
    {
    	return this.EID;
    }
	
	
}  